package com.hui.stock.pojo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author: ymh
 * @date: 2024/12/23 17:39
 * @description: 个股最新分时行情数据领域对象
 */
@ApiModel(description = "个股最新分时行情数据领域对象")
@Data
public class StockRtDomain {
    /**
     * 前收盘价| 昨日收盘价
     */
    @ApiModelProperty(value = "前收盘价| 昨日收盘价", position = 1)
    private BigDecimal preClosePrice;

    /**
     * 开盘价
     */
    @ApiModelProperty(value = "开盘价", position = 2)
    private BigDecimal openPrice;

    /**
     * 当前价格
     */
    @ApiModelProperty(value = "当前价格", position = 3)
    private BigDecimal tradePrice;

    /**
     * 今日最低价
     */
    @ApiModelProperty(value = "今日最低价", position = 4)
    private BigDecimal lowPrice;

    /**
     * 今日最高价
     */
    @ApiModelProperty(value = "今日最高价", position = 5)
    private BigDecimal highPrice;

    /**
     * 成交量
     */
    @ApiModelProperty(value = "成交量", position = 6)
    private Long tradeAmt;

    /**
     * 成交金额
     */
    @ApiModelProperty(value = "成交金额", position = 7)
    private BigDecimal tradeVol;

    /**
     * 当前时间
     */
    @ApiModelProperty(value = "当前时间", position = 8)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "Asia/Shanghai")
    private Date curDate;
}
